package com.gopay.remote.fundcps.service;

import com.alibaba.dubbo.common.serialize.support.SerializationOptimizer;
import com.gopay.common.exception.FundException;
import com.gopay.remote.fundcps.model.*;
import com.gopay.remote.fundcps.vo.FinanceVO;
import com.gopay.remote.fundcps.vo.FundcCustIncomeVO;
import com.gopay.remote.fundcps.vo.FundcOpenAcctConsoleVO;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
 * 序列化
 * @author <a href="mailto:yhwpeng@126.com">wangdong</a>
 * @date 2017-03-28 13:37:44
 */
public class SerializationOptimizerImpl implements SerializationOptimizer {

    @Override
    public Collection<Class> getSerializableClasses() {
        List<Class> classes = new LinkedList<Class>();

        classes.add(FundAgreement.class);
        classes.add(FundCardInfo.class);
        classes.add(FundcCustIncome.class);
        classes.add(FundcGopayOpenAcc.class);
        classes.add(FundcProduct.class);
        classes.add(FundCpsGenOrder.class);
        classes.add(FundcTransoutSmsNotify.class);
        classes.add(FundFile.class);
        classes.add(FundpGopayFastpayCards.class);
        classes.add(FundpGopayFastpayCardsExample.class);
        classes.add(FundpGopayOpenAcct.class);
        classes.add(FundpGopayOpenAcctExample.class);
        classes.add(FundpGopayWhitelist.class);
        classes.add(GenMainOrder.class);

        classes.add(FinanceVO.class);
        classes.add(FundcCustIncomeVO.class);
        classes.add(FundcOpenAcctConsoleVO.class);
        classes.add(FundException.class);



        return classes;
    }
}
